<script setup>
import {OfficeBuilding,Suitcase,User,Document,CreditCard} from "@element-plus/icons-vue/global";
</script>

<template>
  <div class="page-container">
    <div>
      <el-aside>
        <el-menu active-text-color="#ffd04b" background-color="#545c64"  text-color="#fff" class="aside"
                 router>
          <el-menu-item index="/aside/building">
            <el-icon>
              <OfficeBuilding />
            </el-icon>
            <span>楼栋管理</span>
          </el-menu-item>
            <el-menu-item index="/aside/room">
              <el-icon>
                <Suitcase />
              </el-icon>
              <span>宿舍管理</span>
            </el-menu-item>
            <el-menu-item index="/aside/student">
              <el-icon>
                <User />
              </el-icon>
              <span>学生管理</span>
            </el-menu-item>
            <el-menu-item index="/aside/out">
              <el-icon>
                <Document />
              </el-icon>
              <span>缺寝记录</span>
            </el-menu-item>
            <el-menu-item index="/aside/payment">
              <el-icon>
                <CreditCard />
              </el-icon>
              <span>宿舍缴费</span>
            </el-menu-item>
        </el-menu>
      </el-aside>
    </div>
    <div class="content-container">
      <router-view></router-view>
    </div>
  </div>
</template>

<style scoped>
.page-container{
  margin-top: 50px;
  width: 100%;
  display: grid;
  position: relative;
}
.page-container{
  margin-top: 50px;
  width: 100%;
  display: grid;
  position: relative;
}
.aside{
  height: 100vh;
  position: fixed;
  width: 16%;
  overflow: hidden;
  padding-top: 30px;
}
</style>
